﻿using System.Collections.Generic;
//
namespace PerceptiveMCAPI.Types
{
   public class listInterestGroupsResults
   {
      public string name { get; set; }
      public string form_field { get; set; }
      public List<string> groups { get; set; }

      public listInterestGroupsResults()
      {
         groups = new List<string>();
      }

      public override string ToString()
      {
         string groupString = "";
         foreach ( string group in groups )
         {
            groupString = groupString + "'" + group + "' ";
         }
         return string.Format( "name: {0}, form_field: {1}, groups: [{2}]",
            name, form_field, groupString.Trim() );
      }
   }
}
